package model;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * VFrontInformation entity. @author MyEclipse Persistence Tools
 */

public class VFrontInformation implements java.io.Serializable {

	// Fields
	SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd");

	private Integer infoid;
	private Integer typeid;
	private String title;
	private String source;
	private Integer readnum;
	private Integer praisenum;
	private Boolean ishotarticle;
	private Integer photoid;
	private String infocontent;
	private String createtime;
	private String releasetime;
	private String author;
	private Integer oldinfoid;
	private Integer sendstatus;
	private String typename;
	private Boolean isdelete;
	private String path;
	private String status;
	private String schoolName;
	private String schoolType;
	private String realname;

	// Constructors

	/** default constructor */
	public VFrontInformation() {
	}

	/** minimal constructor */
	public VFrontInformation(Integer infoid, Integer typeid) {
		this.infoid = infoid;
		this.typeid = typeid;
	}

	/** full constructor */
	public VFrontInformation(Integer infoid, Integer typeid, String title,
			String source, Integer readnum, Integer praisenum,
			Boolean ishotarticle, Integer photoid, String infocontent,
			String createtime, String releasetime, String author,
			Integer oldinfoid, Integer sendstatus, String typename,
			Boolean isdelete, String path, String status, String schoolName,
			String schoolType, String realname) {
		this.infoid = infoid;
		this.typeid = typeid;
		this.title = title;
		this.source = source;
		this.readnum = readnum;
		this.praisenum = praisenum;
		this.ishotarticle = ishotarticle;
		this.photoid = photoid;
		this.infocontent = infocontent;
		this.createtime = createtime;
		this.releasetime = releasetime;
		this.author = author;
		this.oldinfoid = oldinfoid;
		this.sendstatus = sendstatus;
		this.typename = typename;
		this.isdelete = isdelete;
		this.path = path;
		this.status = status;
		this.schoolName = schoolName;
		this.schoolType = schoolType;
		this.realname = realname;
	}

	// Property accessors

	public Integer getInfoid() {
		return this.infoid;
	}

	public void setInfoid(Integer infoid) {
		this.infoid = infoid;
	}

	public Integer getTypeid() {
		return this.typeid;
	}

	public void setTypeid(Integer typeid) {
		this.typeid = typeid;
	}

	public String getTitle() {
		return this.title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public String getSource() {
		return this.source;
	}

	public void setSource(String source) {
		this.source = source;
	}

	public Integer getReadnum() {
		return this.readnum;
	}

	public void setReadnum(Integer readnum) {
		this.readnum = readnum;
	}

	public Integer getPraisenum() {
		return this.praisenum;
	}

	public void setPraisenum(Integer praisenum) {
		this.praisenum = praisenum;
	}

	public Boolean getIshotarticle() {
		return this.ishotarticle;
	}

	public void setIshotarticle(Boolean ishotarticle) {
		this.ishotarticle = ishotarticle;
	}

	public Integer getPhotoid() {
		return this.photoid;
	}

	public void setPhotoid(Integer photoid) {
		this.photoid = photoid;
	}

	public String getInfocontent() {
		return this.infocontent;
	}

	public void setInfocontent(String infocontent) {
		this.infocontent = infocontent;
	}

	public String getCreatetime() {
		if (this.createtime != null && !this.createtime.equals("")) {
			Date date = Timestamp.valueOf(this.createtime);
			return formatter.format(date).toString();
		}
		return null;
	}

	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}

	public String getReleasetime() {
		return this.releasetime;
	}

	public void setReleasetime(String releasetime) {
		this.releasetime = releasetime;
	}

	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	public Integer getOldinfoid() {
		return this.oldinfoid;
	}

	public void setOldinfoid(Integer oldinfoid) {
		this.oldinfoid = oldinfoid;
	}

	public Integer getSendstatus() {
		return this.sendstatus;
	}

	public void setSendstatus(Integer sendstatus) {
		this.sendstatus = sendstatus;
	}

	public String getTypename() {
		return this.typename;
	}

	public void setTypename(String typename) {
		this.typename = typename;
	}

	public Boolean getIsdelete() {
		return this.isdelete;
	}

	public void setIsdelete(Boolean isdelete) {
		this.isdelete = isdelete;
	}

	public String getPath() {
		return this.path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getStatus() {
		return this.status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getSchoolName() {
		return this.schoolName;
	}

	public void setSchoolName(String schoolName) {
		this.schoolName = schoolName;
	}

	public String getSchoolType() {
		return this.schoolType;
	}

	public void setSchoolType(String schoolType) {
		this.schoolType = schoolType;
	}

	public String getRealname() {
		return this.realname;
	}

	public void setRealname(String realname) {
		this.realname = realname;
	}

}